package DAO;

import java.sql.SQLException;
import java.util.ArrayList;

import Model.EmployeeBean;
import Model.LeaveBean;

public interface LeaveDAO {
	public ArrayList<LeaveBean> findLeave()
		throws ClassNotFoundException, SQLException;
	
	public ArrayList<LeaveBean> findLeaveWith(String condition)
	throws ClassNotFoundException, SQLException;

	public ArrayList<LeaveBean> findLeaveByEmployeeId(int inEmpID)
		throws ClassNotFoundException, SQLException;

	public ArrayList<LeaveBean> findLeaveByManagerId(int inManID)
		throws ClassNotFoundException, SQLException;
	
	public void insertLeave(LeaveBean leave) 
		throws ClassNotFoundException, DAOException, SQLException, Exception;
	
    public void updateLeave(LeaveBean leave) 
    	throws ClassNotFoundException, DAOException, SQLException;
    
    public void deleteLeave(LeaveBean leave) 
    	throws ClassNotFoundException, DAOException;

	

	public LeaveBean getLeaveByLeaveID(int leaveID, int employeeid) throws ClassNotFoundException, SQLException;
}
